package mybatis1.com.config.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;

public class ExamResult {
    private long id,sb_id,st_id;
    private Date exam_date;
    private float score;


  /*  private long stuno,gradeid;
    private  String sname,sex,telephone,qq,wechat,fromcity,address,pass,idcardpic;
    private Date enterdate,birthday;
    private String subjectname;*/
    /*private Subject sub;
    private Student stu;*/
 private List<Student> stu =new ArrayList<>();
 private List<Subject> sub=new ArrayList<>();
    public ExamResult() {
    }


    public ExamResult(long id, float score) {
        this.id = id;
        this.score = score;
    }

    public ExamResult(long id) {
        this.id = id;
    }

    public ExamResult(long sb_id, long st_id, Date exam_date, float score) {
        this.sb_id = sb_id;
        this.st_id = st_id;
        this.exam_date = exam_date;
        this.score = score;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getSb_id() {
        return sb_id;
    }

    public void setSb_id(long sb_id) {
        this.sb_id = sb_id;
    }

    public long getSt_id() {
        return st_id;
    }

    public void setSt_id(long st_id) {
        this.st_id = st_id;
    }

    public Date getExam_date() {
        return exam_date;
    }

    public void setExam_date(Date exam_date) {
        this.exam_date = exam_date;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

   /* public long getStuno() {
        return stuno;
    }

    public void setStuno(long stuno) {
        this.stuno = stuno;
    }

    public long getGradeid() {
        return gradeid;
    }

    public void setGradeid(long gradeid) {
        this.gradeid = gradeid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getFromcity() {
        return fromcity;
    }

    public void setFromcity(String fromcity) {
        this.fromcity = fromcity;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getIdcardpic() {
        return idcardpic;
    }

    public void setIdcardpic(String idcardpic) {
        this.idcardpic = idcardpic;
    }

    public Date getEnterdate() {
        return enterdate;
    }

    public void setEnterdate(Date enterdate) {
        this.enterdate = enterdate;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSubjectname() {
        return subjectname;
    }

    public void setSubjectname(String subjectname) {
        this.subjectname = subjectname;
    }*/

   /* public Subject getSub() {
        return sub;
    }

    public void setSub(Subject sub) {
        this.sub = sub;
    }

    public Student getStu() {
        return stu;
    }

    public void setStu(Student stu) {
        this.stu = stu;
    }*/

    public List<Student> getStu() {
        return stu;
    }

    public void setStu(List<Student> stu) {
        this.stu = stu;
    }

    public List<Subject> getSub() {
        return sub;
    }

    public void setSub(List<Subject> sub) {
        this.sub = sub;
    }

    @Override
    public String toString() {
        return "ExamResult{" +
                "id=" + id +
                ", sb_id=" + sb_id +
                ", st_id=" + st_id +
                ", exam_date=" + exam_date +
                ", score=" + score +
                ", stu=" + stu +
                ", sub=" + sub +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ExamResult that = (ExamResult) o;
        return id == that.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
